package com.example.job.domain.exam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.example.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


/**
* <p>
*
* </p>
*
* @author 49940
* @date 2024年01月30日 10:04:57
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_user_exam")
public class UserExam extends BaseEntity {
    
	@TableId(value = "USER_EXAM_ID", type = IdType.ASSIGN_ID)
	@Schema(description = "用户竞赛关系id")
	private Long userExamId;

	@Schema(description = "竞赛id")
	private Long examId;

	@Schema(description = "用户id")
	private Long userId;

	@Schema(description = "状态（0 未参赛 1 已参赛）")
	private Integer entry;

	@Schema(description = "是否提交（0 未提交 1 已提交）")
	private Integer submit;

	@Schema(description = "提交时间")
	private LocalDateTime submitTime;

	@Schema(description = "得分")
	private Integer score;

	@Schema(description = "竞赛排名")
	private Integer examRank;
}